package J11_15;

import java.util.Arrays;
import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] arr = new int[3];
        for (int i = 0; i < 3; i++) {
            arr[i] = in.nextInt();
        }
        Arrays.sort(arr);
        int res = 0;
        for (int i = 2; i >= 0; i--) {
            res = res * 10 + arr[i];
        }
        System.out.println(res);
    }
}
